<?=$headerHtml?>
<?
    $option      = array('data'=>$classCache,'type'=>'N');
    $classSelect = $classCache ? Libs_GlobalFunc::createSelectElement($option) : '';
?>
       <div class="container">
                <h2 class="admintitle">子类管理<div class="admintitle_r"><a href="?c=<?=$ctlName?>&a=addShow">添加</a></div></h2>
                <div id="srchuserdiv" class="tabcontentcur" style="width:99%;">
                    <table  class="datalist fixwidth">
						<tbody><tr>
							<th nowrap="nowrap"></th>
							<th nowrap="nowrap">id</th>
							<th nowrap="nowrap">频道名</th>
							<th nowrap="nowrap">子类名</th>
							<th nowrap="nowrap">路径</th>
						</tr>
                            <?
                            if($list) {
                                foreach($list as $row){?>
                                }
                                <tr>
                                    <td width="20"></td>
                                    <td width="50"><?=$row['id']?></td>
                                    <td ><?=$row['name']?></td>
                                    <td><?=$classCache[$row['id']]['cnName']?></td>
                                    <td ><?=$row['path']?></td>
                                </tr>
                            <?}
                            } else {
                            ?>
                                <tr>
                                    <td width="20"></td>
                                    <td width="50">1</td>
                                    <td ><?=$classSelect?></td>
                                    <td><input name="name" id="name" value=""></td>
                                    <td><input name="path" id="path" value=""></td>
                                </tr>
                            <?}?>
					</tbody></table>
                    <div class="pageBar"><?=$pageBar?></div>
            </div>
        </div>

    </body>
</html>
